package com.wanka.jutou.gateway.api;

import com.alibaba.csp.sentinel.util.AssertUtil;

import java.util.HashSet;
import java.util.Set;

/**
 * @author yangqing
 * @version 1.0
 * @date 2025/9/1 11:05
 * @description
 */
public class ApiPredicateGroupItem implements ApiPredicateItem {

    private final Set<ApiPredicateItem> items = new HashSet<>();

    public ApiPredicateGroupItem addItem(ApiPredicateItem item) {
        AssertUtil.notNull(item, "item cannot be null");
        items.add(item);
        return this;
    }

    public Set<ApiPredicateItem> getItems() {
        return items;
    }

}
